export const option = function () {
  return {
    refreshBtn: true,
    columnBtn: true,
    border: true,
    stripe: true,
    index: true,
    editBtn: true,
    delBtn: true,
    align: 'center',
    addBtn: !['view'].includes(this.type),
    menu: !['view'].includes(this.type),
    labelWidth: 120,
    indexLabel: '序号',
    column: [
      {
        label: '设备名称/型号',
        prop: 'equipmentNameA',
        rules: [
          {
            required: true,
            message: '请输入设备名称/型号',
            trigger: 'blur'
          }
        ],
        minWidth: 120
      },
      {
        label: '品牌/厂家',
        prop: 'brandA',
        minWidth: 120
      },
      {
        label: '数量',
        prop: 'quantityA',
        type: 'number',
        minWidth: 80
      },
      {
        label: '投入使用时间',
        prop: 'beginDateA',
        type: 'date',
        minWidth: 120
      },
      {
        label: '设备优势说明',
        prop: 'advantageDescriptionA',
        type: 'textarea',
        minRows: 6,
        maxRows: 8,
        span: 24,
        minWidth: 150
      }
    ]
  }
}